#include"Sort.h"
void InsertSort(int* a, int n)
{
	int cur = 0;
	int i = 0;
	for (i = 0; i < n-1; i++)
	{
		cur = i;
		int tmp = a[cur + 1];
		while (cur >= 0)
		{
			if (tmp < a[cur])
			{
				a[cur + 1] = a[cur];
			}
			else
			{
				break;
			}
			cur--;
		}
		a[cur + 1] = tmp;
	}
}


